<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ include file="/common/meta.jsp"%>
<title>汪星客--注册</title>
</head>
<body>
<div class="wrap">
	<div class="header_bg">
	  <%@ include file="/common/header.jsp"%>
	</div>
	<div class="dogtr-login">  
        <div class="dogtr-registcon">
        	<div class="L">
				<form id="win_reg_form" method="post" action="${ctx}/reg/regSave.do">
            	<div class="dogtr-logintit">创建账号</div>
                <p class="dogtr-ti"><span>*</span> 电子邮箱</p>
                <p>
					<input class="easyui-validatebox emailpwd" name="user.loginName" data-options="required:true, delay:500, prompt:'请填写常用邮箱。', validType:['checkLoginName', 'email', 'length[5,50]']"/>
				</p>
				<p class="dogtr-ti"><span>*</span> 您的称呼</p>
				<p>
					<input class="easyui-validatebox emailpwd" name="user.userNickName" data-options="required:true, prompt:'请填写昵称。', validType:'length[1,10]'"/>
				</p>
                <p class="dogtr-ti"><span>*</span> 设置密码</p>
                <p>
					<input id="userLoginPassword" class="easyui-validatebox emailpwd" name="user.loginPassword" type="password" data-options="required:true, prompt:'请设置您的登录密码。'"/>
				</p>
                <p class="dogtr-ti"><span>*</span> 重复密码</p>
                <p>
					<input id="againPassword" class="easyui-validatebox emailpwd" type="password" data-options="required:true, prompt:'请再次输入您的登录密码。'"/>
				</p>
                <p>创建账号表明您已经阅读并同意 <a class="org" href="#">服务条款</a></p>
				<p id="win_reg_err" style="color: #FF0000"></p>
                <p><a href="#" onclick="submitRegUserInfo(this)" class="easyui-linkbutton tg-btn">注册</a></p>
                <p class="gotoreg">已经是注册用户？ <a href="${ctx}/login/index.do">请在这里登录!</a></p>
				</form>
            </div>
            <!-- <div class="R">
            	汪星人<br />
                不需要被关在笼子里<br />
                将获得有资质代养主人的精心照顾<br />
                宠物主人<br />
                方便寻找附近的代养主人<br />
                通过照片随时了解自己宠物的状态<br />
                便捷安全的的网上付款流程<br />
                充分享受汪星人做客的欢乐时光<br />
                代养主人<br />
                最萌的赚钱方法 - 照看汪星人<br />
                免费注册，完善资料，开始代养<br />
                获得评分，轻松赚取更多代养机会
            </div> -->
            <div class="clear"></div>
        </div>
    </div>
    <div class="footer_bg">
		<%@ include file="/common/footer.jsp"%>
	</div>
</div>
</body>
<script type="text/javascript">
	$("#againPassword").validatebox({   
		validType:["PasswordAgain['#userLoginPassword']", "Password[6,50]"]
	});
	function submitRegUserInfo(buttonObj) {
		frame.submitForm("win_reg_form", buttonObj, function(res) {
			if (res.code == 1) {
				tools.href("/");
			} else {
				$("#win_reg_err").html(res.msg);
			}
		});
	};
</script>
</html>